import instance from '../../../utils/request'

// const base = 'http://192.168.1.37:9002/cookcar-plat/'
const base = 'cookcar-plat/'
const pay = 'cookcar-pay/'

// 支付宝dome测试
export function getWAlipayAlipay(data) {
  const config = {
    method: 'post',
    url: `${pay}/Alipay/alipay`,
    params:data
  }
  return instance(config)
}

// 微信支付
export function getCarManagementCPay(data) {
  const config = {
    method: 'post',
    url: `${base}/query/carManagementC/pay`,
    params:data
  }
  return instance(config)
}

// 退款
export function getCarManagementCRefund(data) {
  const config = {
    method: 'get',
    url: `${base}query/carManagementC/refund`,
    params:data
  }
  return instance(config)
}

// 寻车管理已完结订单 => 保存文件
export function getCarManagementCCarFileSave(data) {
  const config = {
    method: 'post',
    url: `${base}query/carFile/save`,
    data
  }
  return instance(config)
}
// 寻车管理已完结订单 => 删除文件

export function getCarManagementCCarFileDelete(data) {
  const config = {
    method: 'delete',
    url: `${base}query/carFile/delete`,
    data
  }
  return instance(config)
}



// 通过拒绝购车事项通知书
export function getOfMortgageIntentionCCheck(data) {
  const config = {
    method: 'get',
    url: `${base}notice/ofMortgageIntentionC/check`,
    params:data
  }
  return instance(config)
}